package edu.ccut.saturn.component.utils;

import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.Properties;

public class PropertyUtils {
	/**
	 * 加载属性文件
	 * @param configPropertisLocation 属性文件路径
	 * @return
	 */
	public static Properties loadProperties(String configPropertisLocation) {

		Properties properties = new Properties();

		try {
			properties.load(new FileInputStream(new File(
					configPropertisLocation)));
		} catch (IOException e) {
			e.printStackTrace();
		}
		return properties;
	}
}
